/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmWatermeterlog extends BasicModel<PmWatermeterlog> {
  createDate?: string; // 创建时间
  logtime?: string; // 操作时间
  projectno?: string; // 项目编号
  name?: string; // name
  duser?: string; // 执行人
  devent?: string; // 执行内容
  dtype?: number; // 操作类型
  dtimestamp?: string; // dtimestamp
}

export const pmWatermeterlogList = (params?: PmWatermeterlog | any) =>
  defHttp.get<PmWatermeterlog>({ url: adminPath + '/process/log/pmWatermeterlog/list', params });

export const pmWatermeterlogListData = (params?: PmWatermeterlog | any) =>
  defHttp.post<Page<PmWatermeterlog>>({ url: adminPath + '/process/log/pmWatermeterlog/listData', params });

export const pmWatermeterlogForm = (params?: PmWatermeterlog | any) =>
  defHttp.get<PmWatermeterlog>({ url: adminPath + '/process/log/pmWatermeterlog/form', params });

export const pmWatermeterlogSave = (params?: any, data?: PmWatermeterlog | any) =>
  defHttp.postJson<PmWatermeterlog>({ url: adminPath + '/process/log/pmWatermeterlog/save', params, data });

export const pmWatermeterlogDelete = (params?: PmWatermeterlog | any) =>
  defHttp.get<PmWatermeterlog>({ url: adminPath + '/process/log/pmWatermeterlog/delete', params });
